const express = require('express')
const pageRouter = express.Router()

const homeRouter = require('./page/homeRouter')
const newsRouter = require('./page/newsRouter')
const newsDetailRouter = require('./page/newsDetailRouter')
const documentRouter = require('./page/documentRouter')
const topicMainRouter = require('./page/topicMainRouter')
const topicDetailRouter = require('./page/topicDetailRouter')
const mallRouter = require('./page/mallRouter')
const contactUsRouter = require('./page/contactUsRouter')
const doctorRouter = require('./page/doctorRouter')

pageRouter.get('/', homeRouter)

pageRouter.get('/home', homeRouter)
pageRouter.get('/news', newsRouter)
pageRouter.get('/newsDetail', newsDetailRouter)
pageRouter.get('/document', documentRouter)
pageRouter.get('/document/:topic', topicMainRouter)
pageRouter.get('/document/:topic/:id', topicDetailRouter)
pageRouter.get('/mall', mallRouter)
pageRouter.get('/contactUs', contactUsRouter)
pageRouter.get('/doctor', doctorRouter)



module.exports = pageRouter